
package org.darcy.model;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.darcy.framework.model.PageParam;
import org.darcy.entity.BizArticleLove;

@ApiModel(": BizArticleLoveModel")
@Getter
@Setter
public class BizArticleLoveModel extends PageParam implements Serializable{
	
	private static final long serialVersionUID = 1L;
     
    @Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value="")
	private Long id;
	
    @ApiModelProperty(value="文章ID")
	private Long articleId;
	
    @ApiModelProperty(value="已登录用户ID")
	private Long userId;
	
    @ApiModelProperty(value="用户IP")
	private String userIp;
	
    @ApiModelProperty(value="浏览时间")
	private Date loveTime;
	
    @ApiModelProperty(value="添加时间")
	private Date createTime;
	
    @ApiModelProperty(value="更新时间")
	private Date updateTime;
	
    
    /**
   	 * model类转化为mybatis plus 查询条件
   	 */
   	public QueryWrapper<BizArticleLove> buildWrapper() {
   		QueryWrapper<BizArticleLove> p = new QueryWrapper<BizArticleLove>();
   		return p;
   	}

}
